package org.se.scut.pinterest.mina.codec.msg;

public enum MessageTypeEnum {

	PICTUREUPLOAD("pu"),
	ALLPICTURETYPERESULT("atr"),
	ALLPICTURETYPE("apt"),
	MOSTCOLLECTED("mc"),
	ALBUMPICTURES("ap"),
	PICTURESBYTYPE("pbt"),
	UPLOADEDPICTURES("up"),
	PICTURESPOSTRESULT("ppr");
	
	private String symbol;
	
	private MessageTypeEnum(String s){
		symbol = s;	
	}

	public String getSymbol() {
		return symbol;
	}
	
	public static MessageTypeEnum getEnumBySybol(String s)
	{
		for (MessageTypeEnum type : MessageTypeEnum.values()) {
			if (type.getSymbol().equals(s)) {
				return type;
			}
		}
		return null;
	}
	
}
